$--g-header-bg-color: hsl(228deg 11.6279069767% 16.862745098%);

.g-form {
  padding: 15px;
}

/*header.html*/
.header {
  display: flex;
  /* width: 100%; */
  height: 60px;
  //background-color: #393D49;
  background-color: $--g-header-bg-color;
  //box-shadow: 0 3px 5px #222;
  box-shadow: 0 3px 5px rgba(0,0,0,.45);
  position: sticky;
  top: 0;
  z-index: 9999;
  border-radius: 0 0 2px 2px;

  .header-nav-item {
    height: 60px !important;
  }

  .app-logo-item {
    display: flex;
    flex-direction: row !important;
    /* justify-content: center; */
    align-items: center;
    /* height: 80px; */
    margin-left: 30px;

    .app-logo-link {
      display: flex;
      flex-direction: row;
      align-items: center;
    }

    .logo {
      display: flex;
      padding: 2px;
      background-color: #ffffff;
      border-radius: 5px;

      img {
        height: 30px;
        width: 30px;
        /* border-radius: 50%; */
        /* border: 1px solid #eee; */
      }
    }

    .app-name {
      font-size: 1.28rem;
      font-weight: bold;
      color: #ffffff;
      margin-left: 10px;
    }
  }
}

/*footer.html*/
.footer {
  text-align: center;
  font-size: 1rem;
  padding: 20px 0 30px;
  width: 100%;
  /*background-color: #eee;*/
  background-color: var(--lay-color-bg-2);
  color: var(--lay-color-text-2);
}

/* model.html */
.m-container {
  display: flex;
  flex-direction: column;
  padding: 1rem 4rem 5rem;

  .search-wrapper {
    display: inline-flex;
    margin-bottom: 15px;

    #searchContent {
      width: 240px;
    }
  }
}

/* model_detail.html */
.md-container {
  padding: 1rem 0 4rem;
  &-header {
    margin-bottom: 10px;

    .layui-card {
      padding: 10px;

      .global-back {
        margin-right: 12px;
        font-size: 1rem;
        display: inline-flex;
        flex-direction: row;
        align-items: center;
        cursor: pointer;
        //color: #5f5f5f;

        &:hover {
          color: #16b777;
        }
      }

      .header-text {
        //color: rgba(0, 0, 0, .85);
      }
    }
  }

  .layui-table-box {
    .layui-table-cell {
      padding: 6px 4px;
    }
  }

  &-main-right {
    position: sticky;
    top: 5px;
    z-index: 1;
  }
}

/*model_form.html*/
#model_form {
  .m-form-content {
    display: flex;
    flex-direction: row;

    &-left {
      flex: 1;
      display: flex;
      flex-direction: column;
      padding-right: 20px;
    }

    &-right {
      width: 200px;
      display: flex;
      flex-direction: column;
      padding-left: 20px;
      border-left: 1px solid var(--lay-color-border-2);

      .def-cols-title {
        //background-color: #fafafa;
        background-color: var(--lay-color-fill-2);
        border-bottom: 1px solid var(--lay-color-border-2);
        padding: 5px;
      }

      .def-cols-content {
        display: flex;
        flex-direction: column;
        padding: 10px;

        .layui-form-checkbox:not(:last-child) {
          margin-bottom: 10px;
        }
      }
    }
  }
}

/* add_model_detail_form.html */
.add-model-form-container {
  padding: 5px;

  .add-model-form-title {
    font-size: 1rem;
    margin: 10px;
    color: black;
  }

  #addPropertyForm {
    .layui-input-block {
      margin-left: 90px;
    }

    .layui-form-label {
      padding: 9px 0;
    }
  }
}

/*model_detail_form.html*/
#md_form {
  .pro-col-name {
    background-color: var(--lay-color-fill-2);
    text-align: center;
    padding: 10px;
    //background-color: #eee;
    border-radius: 5px;
    line-height: 30px;
    margin-bottom: 15px;
  }
}

/*project_form.html*/
#project_form {
  .pro-form-content {
    display: flex;
    flex-direction: row;

    &-left {
      flex: 1;
      display: flex;
      flex-direction: column;
      margin-right: 10px;

      .layui-form-item {
        margin-bottom: 5px;
      }

      .module-input-container {
        display: flex;
        flex-direction: row;
      }

      .module-content {
        margin-top: 1px;
        //background-color: #fcfcfc;
        background-color: var(--lay-color-fill-2);
        line-height: 22px;
        max-height: 90px;
        overflow: auto;
        padding-right: 15px;

        .module-del-icon {
          color: var(--lay-color-text-2);
          margin-left: 4px;
          /* padding: 2px; */
          font-size: 1rem;
          margin-top: 2px;

          &:hover {
            color: var(--lay-color-secondary)!important;
            /*#5FB878;*/
            cursor: pointer;
          }
        }

        .module-name-content {
          display: inline-flex;
          flex-direction: row;
          align-items: center;
          padding: 0 2px 0 4px;
          font-size: 0.85rem;
          margin: 0 4px;

          .module-name-title {
            max-width: 200px;
            padding: 0 2px 0 4px;
            white-space: nowrap;
            text-overflow: ellipsis;
            overflow: hidden;
          }
        }
      }
    }

    &-mid {
      display: flex;
      flex-direction: column;
      margin-top: 14px;

      .model-select-head {
        padding-bottom: 5px;
        display: flex;
        flex-direction: row;
        align-items: center;

        &-left {
          flex: 1;
          display: flex;
          flex-direction: row;
          align-items: center;

          label {
            width: 55px;
          }

          .layui-form-select {
            flex: 1;
          }
        }


        #distributeModelBtn {
          margin-left: 10px;
        }
      }

      .model-select-body {
        display: flex;
        flex-direction: column;
        align-items: center;

        //&-title {
        //    background-color: #fafafa;
        //    border-bottom: 1px solid #ccc;
        //    padding: 5px;
        //    height: 30px;
        //}

        //&-main {
        //    flex: 1;
        //    display: flex;
        //    flex-direction: column;
        //    /* line-height: 30px; */
        //    overflow-y: auto;
        //    margin: 1px;
        //
        //    .layui-form-checkbox {
        //        margin: 5px 10px;
        //
        //        span {
        //            max-width: 200px;
        //            overflow: hidden;
        //            text-overflow: ellipsis;
        //            white-space: nowrap;
        //        }
        //    }
        //}
      }

      .model-select-foot {
        padding-top: 5px;

        .layui-btn {
          width: 100%;
          margin: 0;
        }
      }
    }

    &-right {
      width: 320px;
      margin: 0 20px 0 10px;
      /* border-left: 1px solid #eee; */
      border: 1px solid var(--lay-color-border-2);
      display: flex;
      flex-direction: column;
      height: 510px;

      .pro-struc-title {
        background-color: var(--lay-color-fill-2);;
        border-bottom: 1px solid var(--lay-color-border-2);
        padding: 5px;
        height: 30px;
      }

      .pro-struc-content {
        flex: 1;

        #proStructureTree {
          overflow: auto;
          height: 479px;
          //margin: 1px;
        }
      }
    }
  }

  .pro-form-footer {
    height: 55px;
    display: flex;
    width: 100%;
    align-items: flex-end;
    justify-content: flex-end;
  }
}



